package com.sizu.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 *
 * @author 高旌洋
 * @since 2020-02-24
 */
@Data
@Accessors(chain = true)
@TableName("t_role")
public class TRole extends Model<TRole> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
private Integer id;

    private String bz;

    private String name;

    private String remarks;

    @TableField(exist = false)
    private String menu_name;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
